<%@ page import="csu.web.mypetstore.domain.Account" %>
<%@ include file="../common/top.jsp"%>

<div id="BackLink"><a href="MainForm">
    Return to Main Menu
</a></div>
<div id="Catalog">
    <form action="changeAccountServlet" method="post">
        <%
            Account account = (Account) session.getAttribute("loginAccount");
        %>
        <table>
            <tr>
                <td></td>
                <td>
                    <c:if test="${requestScope.signOnMsg1 != null}">
                        <p> <font color="red">${requestScope.signOnMsg1} </font> </p>
                        </c:if>
                </td>
            <tr>
                <td>Username:</td>
                <td>
                    <input type="text" name="Username" value="<%= account.getUsername()%>"readonly/>
                </td>
            </tr>
            <tr>
                <td>Card Number:</td>
                <td>
                    <input type="text" name="Phone" value="<%= account.getPhone()%>"/>
                </td>
            </tr>

            <tr>
                <td>First name:</td>
                <td>
                    <input type="text" name="FirstName" value="<%= account.getFirstName()%>"/>
                </td>
            </tr>
            <tr>
                <td>Last name:</td>
                <td>
                    <input type="text" name="LastName" value="<%= account.getLastName()%>"/>
                </td>
            </tr>
            <tr>
                <td>Email:</td>
                <td><input type="text"  name="Email" value="<%= account.getEmail()%>"/></td>
            </tr>
            <tr>
                <td>Address 1:</td>
                <td>
                    <input type="text" size="40" name="Address1" value="<%= account.getAddress1()%>"/>
                </td>
            </tr>
            <tr>
                <td>Address 2:</td>
                <td>
                    <input type="text" size="40" name="Address2" value="<%= account.getAddress2()%>"/>
                </td>
            </tr>
            <tr>
                <td>City:</td>
                <td>
                    <input type="text" name="City" value="<%= account.getCity()%>"/>
                </td>
            </tr>
            <tr>
                <td>State:</td>
                <td>
                    <input type="text" size="4" name="State" value="<%= account.getState()%>"/>
                </td>
            </tr>
            <tr>
                <td>Zip:</td>
                <td>
                    <input type="text" size="10" name="Zip" value="<%= account.getZip()%>"/>
                </td>
            </tr>
            <tr>
                <td>Country:</td>
                <td>
                    <input type="text" size="15" name="Country" value="<%= account.getCountry()%>"/>
                </td>
            </tr>
            <tr>
                <td>Password:</td>
                <td>
                    <input type="text" name="Password" value=""/>
                </td>
            </tr>
            <tr>
                <td>Language Preference:</td>
                <td>
                    <select name="language">
                        <option value="english">English</option>
                        <option value="chinese">Chinese</option>
                        <option value="japanese">Japanese</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>Favourite Category:</td>
                <td>
                    <select name="favourite">
                        <option value="DOGS">Dogs</option>
                        <option value="CATS">Cats</option>
                        <option value="BIRDS">Birds</option>
                        <option value="FISH">Fish</option>
                        <option value="REPTILES">Reptiles</option>
                    </select>
                </td>
            </tr>
        </table>
        <input type="submit" value="Comfirm">
    </form></div>

<%@ include file="../common/bottom.jsp"%>